package com.nowcoder.community.service;

import com.nowcoder.community.entity.DiscussPost;
import org.springframework.data.domain.Page;
import org.springframework.data.elasticsearch.core.SearchPage;
import org.springframework.stereotype.Service;

@Service
public interface ElasticSearchService {

    void saveDiscussPost(DiscussPost discussPost);

    void deleteDiscussPost(int discussPostId);

    SearchPage<DiscussPost> searchDiscussPost(String keyword, int current, int limit);

}
